package com.board.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@ApiModel("订单编号和类型对象")
public class OrdernumTypeForm {
    @ApiModelProperty("订单编号")
    @NotNull(message = "订单编号不能为空")
    @Pattern(regexp = "^[A-Za-z0-9]*$", message = "订单编号只允许包含字母、数字")
    private String orderNum;
    @ApiModelProperty("订单类型")
    @NotNull(message = "订单类型不能为空")
    private Integer orderType;
}
